import request from "@/utils/request";

//获取Banner图片数据
 export function getBannerAPI(param={}){
  //默认为1 商品为2
  const { distributionSite='1' } =param
  return request({
    url: "/home/banner",
    params: {
      distributionSite,
    },
  });
 }


 //获取新鲜好物
 export const findNewAPI=()=>{
  return request({
    url: "/home/new",
  });
 }

 //获取人气推荐
 export const getHotAPI = () => {
   return request({
     url: "home/hot",
   });
 };

 /**
 * @description: 获取所有商品模块
 * @param {*}
 * @return {*}
 */
export const getGoodsAPI = () => {
  return request({
    url: "/home/goods",
  });
}